/*
 * @Description: page name
 * @Author: Huang Junjie
 * @Date: 2021-04-22 13:52:51
 * @LastEditTime: 2021-04-30 12:02:14
 * @LastEditors: Huang Junjie
 */
import request from '@/utils/request';

// 列表查询
export function getDataList(params) {
  return request({
    url: `/jjxt/bureauFaultCategoryConfig/`,
    method: 'get',
    params
  });
}

// 保存或更新
export function updateDataList(data) {
  return request({
    url: `/jjxt/bureauFaultCategoryConfig/`,
    method: 'post',
    data
  });
}

// 批量删除
export function deleteData(data) {
  return request({
    url: `/jjxt/bureauFaultCategoryConfig/deleteFlagByIds`,
    method: 'post',
    data
  });
}

// 得到故障专业列表
export function getFaultProfessionalDataList(params) {
  return request({
    url: `/jjxtapi/dict/findByDtId`,
    method: 'get',
    params
  });
}

// 排序移动
export function sortMoveData(data) {
  return request({
    url: `/jjxt/bureauFaultCategoryConfig/move`,
    method: 'post',
    data
  });
}
